import { get, post, put, deleteApi } from '@/utils/api'

export function pageQuery(queryParams) {
    return get('/admin/orders/page', queryParams)
}

export function storePageQuery(queryParams) {
    return get('/admin/orders/store/page', queryParams)
}

export function insert(data) {
    return post('/admin/orders', data)
}

export function update(data) {
    return put('/admin/orders', data)
}

export function deleteData(ids) {
    return deleteApi('/admin/orders', ids)
}
